package com.bonc.ioc.dao;

import com.bonc.ioc.base.mapper.BaseDao;
import com.bonc.ioc.vo.SaveStandardDetailVo;
import com.bonc.ioc.vo.StandardDetailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 1.0
 * @description:
 * @author: wangqinglin
 * @date: 2021/3/26 14:21
 * @change : 2021/3/26 14:21 by q8541q@163.com  for init
 */
@Mapper
public interface StandardDetailMapper extends BaseDao<StandardDetailVo> {

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    StandardDetailVo selectByPrimaryKey(Long id);


    int saveBatch(@Param("kv") List<StandardDetailVo> kv);

    int updateBatch(@Param("kv") List<StandardDetailVo> kv);

    SaveStandardDetailVo getStandDetailInfo(@Param("id") String id);

    List<SaveStandardDetailVo> getStandDetailInfoList(String id);


    void deleteAll();

    void saveAll(StandardDetailVo standardDetail);
}